package cn.practice.chat.controller;

import cn.practice.chat.config.Producter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * @ClassName TestController
 * @Description:
 * @Author A-TAO
 * @Date 2022/10/30
 * @Version V1.0
 **/
@RestController
public class TestController {

    @Autowired
    private Producter producter;


    @GetMapping("/testsend")
    public String testSend(){
        producter.sendMessage("testtopic-out-0","2222222");
        return "sucees";
    }

}
